import { defineStore } from 'pinia'

// useStore could be anything like useUser, useCart
// the first argument is a unique id of the store across your application
export const useStore = defineStore({
    // id: 必须的，在所有 Store 中唯一
    id: "myGlobalState",
    // state: 返回对象的函数
    state: ()=> ({
        count: 1
    }),
    actions:{

    }
});
